﻿<Window x:Class="LabyRob.Dashboard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="800" Width="1000"
    Title="LabyRob valdymo skydas"
	Name="window"
	WindowStartupLocation="CenterScreen" KeyDown="window_KeyDown" Closed="window_Closed" ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow">
	<Grid>
		<!-- Main Grid -->
		<Grid.RowDefinitions>
			<RowDefinition Height="25" />
			<RowDefinition Height="420" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="650" />
			<ColumnDefinition Width="350" />
		</Grid.ColumnDefinitions>
		<Label Name="clr"/>
		<!-- Main menu -->
		<Menu IsMainMenu="True" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Height="25">

		</Menu>
		<!-- Console -->
		<GroupBox Grid.Row="2" Grid.Column="0" Header="Konsolė" Margin="5" FontWeight="Bold">
			<ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" Name="consoleScrollBar" Height="290" FontWeight="Normal">
				<Grid Height="280" Name="console" Margin="5">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="20" />
						<ColumnDefinition Width="60" />
						<ColumnDefinition Width="760*" />
					</Grid.ColumnDefinitions>
				</Grid>
			</ScrollViewer>
		</GroupBox>
		<!-- Mini Map -->
		<GroupBox Grid.Row="2" Grid.Column="1" Header="Labirinto žemėlapis" Margin="0,5,15,5" FontWeight="Bold">
			<Image Source="/LabyRob.Y2010.M03;component/Images/photo.jpg" />
		</GroupBox>
		<!-- Manual controls -->
		<GroupBox Grid.Row="1" Grid.Column="0" Header="Rankinis valdymas" Margin="5" FontWeight="Bold">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="400" />
					<ColumnDefinition Width="250" />
				</Grid.ColumnDefinitions>
				<!-- Navigation -->
				<GroupBox Grid.Row="0" Grid.Column="0" Header="Navigacija" Margin="3 5 5 3">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition />
							<RowDefinition Height="80" />
							<RowDefinition />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition />
							<ColumnDefinition />
							<ColumnDefinition />
						</Grid.ColumnDefinitions>
						<Button Grid.Column="1" Grid.Row="0" Height="30" Name="MoveForward" Width="100" VerticalAlignment="Bottom" Click="MoveForward_Click">
							<StackPanel Orientation="Horizontal">
								<Image Height="16" Source="Images/up.png" />
								<TextBlock Margin="4 0" VerticalAlignment="Center">Pirmyn</TextBlock>
							</StackPanel>
						</Button>
						<Button Grid.Column="1" Grid.Row="3" Height="30" Name="MoveBackward" Width="100" VerticalAlignment="Top" Click="MoveBackward_Click">
							<StackPanel Orientation="Horizontal">
								<Image Height="16" Source="Images/down.png" />
								<TextBlock Margin="4 0" VerticalAlignment="Center">Atgal</TextBlock>
							</StackPanel>
						</Button>
						<Button Grid.Column="2" Grid.Row="1" Height="30" Name="MoveRight" Width="100" Click="MoveRight_Click">
							<StackPanel Orientation="Horizontal">
								<TextBlock VerticalAlignment="Center">Dešinėn</TextBlock>
								<Image Margin="4 0" Height="16" Source="Images/right.png" />
							</StackPanel>
						</Button>
						<Button Grid.Column="0" Grid.Row="1" Height="30" Name="MoveLeft" Width="100" Click="MoveLeft_Click">
							<StackPanel Orientation="Horizontal">
								<Image Height="16" Source="Images/left.png" />
								<TextBlock Margin="4 0" VerticalAlignment="Center">Kairėn</TextBlock>
							</StackPanel>
						</Button>
					</Grid>
				</GroupBox>
				<!-- Power -->
				<GroupBox Grid.Row="0" Grid.Column="1" Header="Greičio nustatymai" Margin="0 5 25 3" Width="224">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="35" />
							<RowDefinition Height="260" />
							<RowDefinition />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="85" />
							<ColumnDefinition Width="45" />
							<ColumnDefinition Width="85" />
						</Grid.ColumnDefinitions>
						<!-- Power sliders -->
						<Label Grid.Column="0" Grid.Row="0" Content="Kairys ratas" HorizontalAlignment="Center" VerticalAlignment="Center" />
						<Slider Name="LeftWheelSlider" Orientation="Vertical" Grid.Column="0" Grid.Row="1" Margin="10" HorizontalAlignment="Center" SelectionStart="1" SelectionEnd="10" TickFrequency="0" TickPlacement="Both" Ticks="0 1 2 3 4 5 6 7 8 9 10" Interval="1" IsSnapToTickEnabled="True" Value="5" ValueChanged="LeftWheelSlider_ValueChanged" />
						<Label Grid.Column="2" Grid.Row="0" Content="Dešinys ratas" HorizontalAlignment="Center" VerticalAlignment="Center" />
						<Slider Name="RightWheelSlider" Orientation="Vertical" Grid.Column="2" Grid.Row="1" Margin="10" HorizontalAlignment="Center" SelectionStart="1" SelectionEnd="10" TickFrequency="0" TickPlacement="Both" Ticks="0 1 2 3 4 5 6 7 8 9 10" Interval="1" IsSnapToTickEnabled="True" Value="5" ValueChanged="RightWheelSlider_ValueChanged" />
						<Grid Grid.Column="1" Grid.Row="1">
							<Grid.RowDefinitions>
								<RowDefinition />
								<RowDefinition Height="210" />
								<RowDefinition />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition />
							</Grid.ColumnDefinitions>
							<Label Grid.Column="0" Grid.Row="0" Content="MAX" HorizontalAlignment="Center" VerticalAlignment="Center" />
							<Label Grid.Column="0" Grid.Row="2" Content="MIN" HorizontalAlignment="Center" VerticalAlignment="Center" />
						</Grid>
						<!-- Both wheels -->
						<CheckBox Name="WheelsTogether" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="3" HorizontalAlignment="left" Margin="15 0 0 0" VerticalAlignment="Center" IsChecked="True" Checked="WheelsTogether_Checked" Unchecked="WheelsTogether_Unchecked">Reguliuoti abu ratus kartu</CheckBox>
					</Grid>
				</GroupBox>
			</Grid>
		</GroupBox>
		<!-- Information -->
		<GroupBox Grid.Row="1" Grid.Column="1" Header="Informacija" Margin="0,5,15,5" FontWeight="Bold">
		</GroupBox>
	</Grid>
</Window>